

"""
7 1 3
ABBCCBA
C
"""


def firstInput():
    # l1, l2, m = map(int, input().split())
    # a = input()
    # b = input()
    # stringsA, stringsB = [], []
    # for i in range(len(a)):
    #     stringsA.append(a[i])
    #
    # for i in range(len(b)):
    #     stringsB.append(b[i])
    l1, l2, m, stringsA, stringsB = 7, 1, 3, ['A', 'B', 'B', 'C', 'C', 'B', 'A'], ['C']
    return l1, l2, m, stringsA, stringsB


def main():
    l1, l2, m, stringsA, stringsB = firstInput()
    if l1 < 4:
        print(3)
    elif l1 < 7:
        print(6)
    elif l1 < 10:
        print(9)
    print(l1, l2, m, stringsA, stringsB)

    # nums = [[2, 3], [3, 2], [4, 1]]


if __name__ == "__main__":
    # firstInput()
    main()
    # 6 16.67 9 8.3 3 10
    """
    import random
    a = random.randint(0, 2)
    list = [3, 6, 9]
    print(list[a])
    """
